package com.jjyu.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("points_log")
public class PointsLog {
    @TableId
    private Integer logId;  // 积分日志ID
    private Integer userId;  // 用户ID
    private Integer pointsEarned;  // 获得的积分
    private Integer orderId;  // 订单ID
    private String itemName;  // 菜品名称
    private BigDecimal itemPrice;  // 菜品价格
    private LocalDateTime createdAt;


}
